package com.nd.android.u.ui.activity.recent_contact;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.TextView;

import com.common.utils.StarAppUtils;
import com.nd.android.u.ui.R;
import com.nd.android.u.ui.activity.base.NetUnReachActivity;

/**
 * ��������ʾ
 * 
 * <br>Created 2014-8-13 ����10:25:44
 * @version  
 * @author   HuangYK		
 *
 * @see
 */
public class OfflineFragment extends Fragment {

	public static OfflineFragment newInstance() {
		return new OfflineFragment();
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);

		getView().setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getActivity(),
						NetUnReachActivity.class);
				startActivity(intent);
			}
		});
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		View rootView = inflater.inflate(R.layout.net_warn_item, container, false);
		StarAppUtils.setViewTypeFace((TextView)rootView.findViewById(R.id.nw_detail), false);
		
		return inflater.inflate(R.layout.net_warn_item, container, false);
	}

}
